import { createRouter, createWebHashHistory } from 'vue-router';

// 1.创建路由规则
const routes = [
    { path: '/index',name: 'Home', component: () => import('../viesw/index/index.vue')},
    // { path: '/login', component:  () => import('../viesw/login/index.vue') }
]
// 2.创建路由实例
const router = createRouter({
    // createWebHistory
    history: createWebHashHistory(), 
    routes,
});

export default router;

// 3.创建登录组件
// 4.指定出口
